package com.example.springfeature.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.stereotype.Component;

/**
 * Created with IDEA
 *
 * @author: 董文辉
 * Date: 2019/2/21
 * Time: 18:28
 */
@Aspect
@Component
public class AspectProcessor {

    @Before("execution(* com.example.springfeature.aop.BenCar.run())")
    public void preHandler(){
        System.out.println("预处理执行中。。");
    }
}
